-
Notifications
You must be signed in to change notification settings - Fork 41
Added new kb article missing-content-pdf-radwordsprocessing #573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added new kb article missing-content-pdf-radwordsprocessing #573
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request adds a comprehensive knowledge base article that explains how to fix missing content in exported PDF files generated using RadWordsProcessing by implementing a custom FontsProvider.
- Introduces a new KB article in Markdown format
- Provides a sample C# implementation demonstrating how to override GetFontData in a custom FontsProvider class and configure FixedExtensibilityManager
Comments suppressed due to low confidence (1)
knowledge-base/missing-content-pdf-radwordsprocessing.md:58
- Consider using Path.Combine to join the folder path and file name instead of string concatenation, ensuring better cross-platform compatibility and readability.
using (FileStream fileStream = File.OpenRead(this.fontFolder + "\" + fontFileName))
| fontFolder = @"..\..\..\"; | ||
| var fontData = this.GetFontDataFromFontFolder("David.ttf"); | ||
| fontFolder = Environment.GetFolderPath(Environment.SpecialFolder.Fonts); | ||
| return fontData; |
Copilot
AI
Jun 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid modifying the instance variable 'fontFolder' directly for temporary folder changes, as this could introduce thread-safety issues; consider using a local variable instead.
| fontFolder = @"..\..\..\"; | |
| var fontData = this.GetFontDataFromFontFolder("David.ttf"); | |
| fontFolder = Environment.GetFolderPath(Environment.SpecialFolder.Fonts); | |
| return fontData; | |
| string temporaryFontFolder = @"..\..\..\"; | |
| var fontData = this.GetFontDataFromFontFolder(temporaryFontFolder + "\\" + "David.ttf"); | |
| return fontData; | |
| return fontData; |
No description provided.